package com.NIO.socket;

import java.io.IOException;
import java.nio.channels.SelectionKey;

/**
 * note:
 * Created by shaxj-mac
 * Date: 16/7/15
 * Time: 下午3:14
 */
public interface TCPProtocol{
    //accept I/O形式
    void handleAccept(SelectionKey key) throws IOException;
    //read I/O形式
    void handleRead(SelectionKey key) throws IOException;
    //write I/O形式
    void handleWrite(SelectionKey key) throws IOException;
}